/*
klasi model magaziou
@author Thanos
 */

package allthemoneyflowers.model;

/**
 *
 * @author Thanos Psaridis
 */
public class StoreBean {
   
    private String name;
    private String address;
    private String tel;
    private int tables;
    private int bookedTables = 0;

   public StoreBean(String name,String tel,String address,int tables)
   {
       this.name = name;
       this.tel = tel;
       this.address = address;
       this.tables = tables;
   }
    /**
     * @return the address
     */
    public String getAddress() {
        return address;
    }

    /**
     * @param address the address to set
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * @return the tel
     */
    public String getTel() {
        return tel;
    }

    /**
     * @param tel the tel to set
     */
    public void setTel(String tel) {
        this.tel = tel;
    }

    /**
     * @return the tables
     */
    public int getTables() {
        return tables;
    }

    /**
     * @param tables the tables to set
     */
    public void setTables(int tables) {
        this.tables = tables;
    }

    /**
     * @return the name
     */
    public String getName() {
        return name;
    }

    /**
     * @param name the name to set
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * @return the bookedTables
     */
    public int getBookedTables() {
        return bookedTables;
    }

    /**
     * @param bookedTables the bookedTables to set
     */
    public void setBookedTables(int bookedTables) {
        this.bookedTables += bookedTables;
    }
    public void clearBookedTables()
    {
        this.bookedTables = 0;
    }

}
